package com.adbj.statictest;

import java.util.Date;

import static java.lang.Integer.MAX_VALUE;

public class StaticCode {

    private Date birthDate;

    public static Date startDate;

    private static Date endDate;

    static {
        startDate = new Date();
        endDate = new Date();
    }

    public StaticCode(Date birthDate){
        this.birthDate=birthDate;
    }

    boolean isBormBoomer(){
        /*Date startDate = Date.valueOf("1946");
        Date endDate = Date.valueOf("1964");*/
        System.out.println(MAX_VALUE);
        return birthDate.compareTo(startDate)>=0 && birthDate.compareTo(endDate) < 0;
    }

    public static void main(String[] args) {

        startDate=new Date();
    }
}
